Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework the histogram activity chart #5685

Closed
wants to merge 1 commit into from
Closed

Conversation

rowanseymour
Copy link
Member

@rowanseymour rowanseymour commented Nov 22, 2024

  • Max date is always today.
  • Min date is at least 90 days in past.
  • Bucket to months or weeks depending on how long we have data for.

@@ -2888,9 +2887,6 @@ def test_results(self):
self.assertEqual("Color", counts[0]["name"])
self.assertEqual(2, counts[0]["total"])

FlowCRUDL.ActivityChart.HISTOGRAM_MIN = 0
FlowCRUDL.ActivityChart.PERIOD_MIN = 0
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are always zero...

@@ -1279,13 +1281,11 @@ def render_to_response(self, context, **response_kwargs):

return JsonResponse(
{
"start_date": start_date,
"end_date": end_date,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not used

Copy link

codecov bot commented Nov 22, 2024

Codecov Report

Attention: Patch coverage is 95.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 99.99%. Comparing base (75b2a5c) to head (da88a3c).

Files with missing lines Patch % Lines
temba/flows/views.py 95.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##              main    #5685      +/-   ##
===========================================
- Coverage   100.00%   99.99%   -0.01%     
===========================================
  Files          571      571              
  Lines        25923    25920       -3     
===========================================
- Hits         25923    25919       -4     
- Misses           0        1       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@rowanseymour rowanseymour deleted the rework_activity_charts branch November 25, 2024 20:30
@github-actions github-actions bot locked and limited conversation to collaborators Nov 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant